package Test;

import java.text.SimpleDateFormat;
import java.util.Date;


public class TestDate {

	public static void main(String[] args) {
		   
		     /*String birthday="1992-08-25";
        
			int age=Integer.parseInt(new SimpleDateFormat("yyyy").format(new Date()))-Integer.parseInt(birthday.substring(0, 4));
			System.out.println(age);*/
		
		getEncodingAesKey();
		
		
		
		
		
		
	}
	private static void getEncodingAesKey() {
		String str="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
		String[] res=str.split("");
		for(int i= 0;i<43;i++){
			int r= (int)(Math.random()*62);			
			res[i]=str.substring(r, r+1);
			boolean flag=true;
			for(int j= 0;j<i;j++){
				if(res[i].equals(res[j])){
					i--;
					flag=false;
					break;
				}
			}
			if(flag){
				System.out.print(res[i]);			
			}else{
				flag=true;
			}
		}
		System.out.println("XT1CYF57xf29UGNSvZQKODksHnRlMuBtoPWzphVAieE".length());
	}
}
